import request from '@/utils/request.js'

export function fetchWatchBonusTask(device) {// 获取看剧任务列表
    return request.get('/app/watchBonus/getWatchTaskList?device=' + device)
}

export function fetchClaimTaskReward(data) {// 手动领取刷剧奖励
    return request.post('/app/watchBonus/manual', data)
}

export function fetchNewbieTask(device) {// 获取新手任务
    return request.get('/app/user/queryNewbieTask?device=' + device)
}

/**
 * 
 * @param {Number} taskId 新手任务id 
 */
export function fetchNewbieRewards(data) {// 获取新手任务奖励
    return request.post('/app/user/getNewbieTaskRewards', data)
}